package com.ruoyi.common.enums;

public enum WarningSendStatus {
    //告警方式0电话1钉钉2邮箱3短信
    // 定义错误编码及含义
    FAILURE(0, "失败"),
    SUCCESS(1, "成功"),
    SENDING(2, "发送中"),
    PHONE_NUMBER_NULL(101, "电话号码为空，发送失败"),
    PHONE_NOT_CONNECTED(102, "电话未接通"),
    EMAIL_ADDRESS_NULL(201, "邮箱地址为空，发送失败"),
    SMS_TIME_OUT(301, "短信发送超时"),
    SMS_PORT_NOT_REGISTERED(302, "部分运营商网关尚未完成报备"),;


    private final int code;
    private final String message;

    // 构造函数，用于初始化编码和消息
    WarningSendStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    // 获取编码
    public int getCode() {
        return code;
    }

    // 获取消息
    public String getMessage() {
        return message;
    }
}
